package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author Lexin Huang
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("pet")
public class Pet implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private
    Integer id;

    @TableField(value = "pet_portrait_path")
    private
    String portraitPath;

    @TableField(value = "pet_name")
    private
    String name;

    @TableField(value = "pet_breed")
    private
    String breed;

    @TableField(value = "pet_introduction")
    private
    String introduction;

    /**
     * 宠物是否公开
     */
    @TableField(value = "pet_is_overt")
    private
    Boolean overt;

    @TableField(value = "user_id")
    private
    Integer userId;

}
